]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Limit switch gestures to normal mode
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 20 Mar 2019 15:21:01 +0000 (15:21 +0000)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 11 Apr 2019 17:00:17 +0000 (17:00 +0000)
The window group is hidden while in overview, so the stick-to-content
animation isn't visible either. Worse, the gestures messes up the
position of window actors in that case. Just limit the gesture to
normal mode for now, we will soon add it back in the overview with
its own animation handling.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/516

js/ui/windowManager.js

index 089035ba5ee1ffa3864dd1d2908ce617f54283da..e8bd0a69023f026df07be57961a23da0c30fea60 100644 (file)
@@ -1058,7 +1058,7 @@ var WindowManager = class {
         global.workspace_manager.override_workspace_layout(Meta.DisplayCorner.TOPLEFT,
                                                            false, -1, 1);
 
-        let allowedModes = Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW;
+        let allowedModes = Shell.ActionMode.NORMAL;
         let gesture = new WorkspaceSwitchAction(allowedModes);
         gesture.connect('motion', this._switchWorkspaceMotion.bind(this));
         gesture.connect('activated', this._actionSwitchWorkspace.bind(this));